﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using FwProject.Car.Dto;
using FwProject.Core.Car;
using FwProject.Core.Restaurant;

namespace FwProject.Restaurant.Dto
{
    [AutoMap(typeof(LoadCar))]
    public class LoadCarDto : Entity<Guid>,ICreationAudited
    {

        [Display(Name = "汽车编号")]
        public Guid Carinfoid { get; set; }

        [Display(Name ="装车单号")]
        public string CreationNumber { get; set; }

        [Display(Name = "出库库管编号")]
        public long? OutUserId { get; set; }

        [Display(Name = "回库库管编号")]
        public long? BackUserId { get; set; }

        [Display(Name = "汽车")]
        public CarInfoDto CarInfoModel { get; set; }

        [Display(Name = "装车明细")]
        public ICollection<LoadingCarDto> LoadingCarInfoList { get; set; }

        [Display(Name = "装车状态")]
        public CarStatus CarStatus { get; set; } = CarStatus.已装车;

        [Display(Name = "出库审核状态")]
        public ExamineStatus ExamineStatus { get; set; } = ExamineStatus.未审核;

        [Display(Name = "回库审核状态")]
        public BackStatus BackStatus { get; set; } = BackStatus.未审核;
        [Display(Name ="盘点时间")]
        public DateTime? OverTime { get; set; }

        public DateTime? BackStatusOverTime { get; set; }
        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get; set; }

        public long? DriverUserId { get; set; }
    }
}
